package com.ruoyi.framework.config;

import com.ruoyi.system.service.sys.SysOssConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: seeTools
 * @Date: 2024/1/22  9:38
 * @Version 1.0
 */
@Slf4j
@Component
public class ResourceRunner implements ApplicationRunner {

    @Resource
    private SysOssConfigService sysOssConfigService;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        sysOssConfigService.init();
        log.info("初始化OSS配置成功");
    }
}
